#ifndef __ADC_H
#define __ADC_H
#include "stm8s_adc1.h"

void adc_init();
void adc_channel_change(ADC1_Channel_TypeDef ADC1_Channel);
uint16_t adc_get_gata(ADC1_Channel_TypeDef ADC1_Channel);
uint16_t adc_get_average_data(ADC1_Channel_TypeDef ADC1_Channel);
float adc_refresh_benchmark();
float adc_get_voltage();
float adc_get_current();
int8_t adc_get_temp();
#endif